<?php

if ( ! defined("IN_OP") )
{
    exit("You can't access this file directly...");
}
if ( check_upid_mode($curruser['id']) == 0 )
{
    exit("You can't access this file directly...");
}
if ( ! isset($idxGametype) )
{
    header("Location: op.php");
    exit();
}
if ( $idxGametype == 0 )
{
    header("Location: op.php");
    exit();
}
if ( 15 < $idxGametype )
{
    $opidx = "member_5h";
}
else
{
    $opidx = "member_3d";
}
$ui = new UI_3D(false , G_SITENAME);
$tpl = new Template2();
$tpl->set("default_3d_top_src" , "?op={$opidx}&fp=title_3d&gametype={$idxGametype}");
$tpl->set("default_3d_mainFrame" , "?op={$opidx}&fp=bet&palygroup=r1&gametype={$idxGametype}");
$tpl->set("default_3d_leftFrame" , "?op={$opidx}&fp=account&gametype={$idxGametype}");
$tpl->load("main" , "index_3d.htm");
$ui->header();
$tpl->show("main");
$ui->footer();
?>